#ifndef CPP_SIZE_H
#define CPP_SIZE_H

//@brief 大小
//@author cvte
//@description 定义了x,y,w,h的大小对象
class Size {
   public:
    Size() : mX(0), mY(0), mWidth(0), mHeight(0){};
    Size(int x, int y, int width, int height) : mX(x), mY(y), mWidth(width), mHeight(height){};
    ~Size(){};

    void setX(int x) {
        this->mX = x;
    }

    int getX() {
        return this->mX;
    }

    void setY(int y) {
        this->mY = y;
    }

    int getY() {
        return this->mY;
    }

    void setWidth(int width) {
        this->mWidth = width;
    }

    int getWidth() {
        return this->mWidth;
    }

    void setHeight(int height) {
        this->mHeight = height;
    }

    int getHeight() {
        return this->mHeight;
    }

   private:
    int mX;
    int mY;
    int mWidth;
    int mHeight;
};

#endif /* CPP_SIZE_H */